package com.lawliet.example.model.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("sys_login_log")
@Schema(name = "SysLoginLog", description = "登录日志表")
public class SysLoginLog implements Serializable {

    @TableId(type = IdType.AUTO)
    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "登录IP")
    private String ip;

    @Schema(description = "浏览器信息")
    private String userAgent;

    @Schema(description = "登录状态")
    private Integer status;

    @Schema(description = "登录信息")
    private String message;

    @Schema(description = "登录时间")
    private Date loginTime;
}
